<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>修改类型</title>
	<!-- bootstrap 核心css -->
	<link rel="stylesheet" href="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/bootstrap/css/bootstrap.min.css">
	<script type="text/javascript" src="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/Common/js/jquery-1.7.2.min.js"></script>
	<!-- bootstrap 核心js -->
	<script src="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/Common/css/main.css" />
	<style type="text/css">
		input[type="text"]{
            background-color: #FFFFFF;
            border: 2px solid #DDDDDD;
            border-radius: 0;
            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
            color: #555555;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            margin: 0;
            padding: 0 6px;
            vertical-align: middle;
            height: 30px;
        }
	</style>
</head>
<body>
	<div class="pos">修改类型</div>
	<form action="<?php echo U('Type/edit');?>" name="addForm" method="post">
		<table class="table table-bordered table-hover">
			<tr height="40">
				<td class="" width="150">类型名称：</td>
				<td><input type="text" name="tname" value="<?php echo $tname;?>" /></td>
			</tr>
		
			<tr>
				<td>类型属性：</td>
				<td>
					<?php if(is_array($allAttr)):?><?php  foreach($allAttr as $v){ ?>
					<label class="checkbox inline"><input type="checkbox" id="inlineCheckbox1" name="attr[]" value="<?php echo $v['kindid'];?>" <?php if(in_array($v['kindid'],$tempArr)){?>checked='checked'<?php }?>> <?php echo $v['attrname'];?></label>				
					<?php }?><?php endif;?>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="修改" class="btn btn-primary" /></td>
			</tr>
		</table>
		<input type="hidden" name="tid" value="<?php echo $_GET['tid'];?>" />
	</form>
</body>
</html>